package com.heima.search.api;

import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import org.apache.commons.net.nntp.Article;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author mgw
 * @create 2021/10/7 20:43
 */
@FeignClient(value = "leadnews-search", path = "/articles")
public interface ArticleEsFeign {
    @PostMapping("/save")
    ResponseResult saveToEs(@RequestBody ApArticle article);
}
